package com.example.springboot.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 功能
 * 作者：八滴水
 * 日期： 2024/11/25 20:47
 */

@Getter
public class ServiceException extends RuntimeException {

    private final String code;

    public ServiceException(String msg) {
        super(msg);
        this.code = "500";
    }
    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;
    }
}